%h1 Listing users

%table
  %tr
    %th Username
    %th Email
    %th Crypted password
    %th Password salt
    %th Persistence token
    %th
    %th
    %th

  - @users.each do |user|
    %tr
      %td= user.username
      %td= user.email
      %td= user.crypted_password
      %td= user.password_salt
      %td= user.persistence_token
      %td= link_to 'Show', user
      %td= link_to 'Edit', edit_user_path(user)
      %td= link_to 'Destroy', user, method: :delete, data: { confirm: 'Are you sure?' }

%br

= link_to 'New User', new_user_path
